package com.itheima.domain.dto;

import org.hibernate.validator.constraints.URL;

import javax.validation.constraints.Email;
import javax.validation.constraints.Pattern;

public class UserEditDTO {

    @Pattern(regexp = "^\\S{5,15}$")
    private String nickname;

    @Email
    private String email;

    @URL
    private String avatar;

    @Pattern(regexp = "^\\S{5,15}$")
    private String password;

}
